import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/employee/page',
    method: 'get',
    params
  })
}
// 修改员工信息
export function updateEmployee(data) {
  return request({
    url: '/employee',
    method: 'put',
    data
  })
}
// 添加员工
export function addEmployee(data) {
  return request({
    url: '/employee',
    method: 'post',
    data
  })
}

// 启用/禁用员工账号
export function updateEmployeeStatus(id, status) {
  return request({
    url: '/employee',
    method: 'put',
    data: {
      id: id,
      status: status
    }
  })
}
